package cisdi.mes.sm.rm.service;

import java.util.Map;

public interface BaseServ {

	void save(Object entity) throws Exception;
	
	void add(Object entity) throws Exception;
	
	void delete(Object entity) throws Exception;
	
	void delete(Object[] entity) throws Exception;
	
	void delete(String className, String... ids) throws Exception;
	
	Map<String, Object> query(String queryString) ;
	
	Map<String, Object> query(String queryString, Integer start, Integer limit);
	
	Map<String, Object> query(String queryString, String[] paramNames, Object[] values);
	
	Map<String, Object> query(String queryString, String[] paramNames, Object[] values, Integer start, Integer limit);
}
